from Base import message, intersect, SS_VALID
from DRG import MDCF_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["00.5500x008","39.5003","39.5010","39.7100x004","39.7101","39.7102","39.7300x003","39.7301","39.7303","39.7701","39.7800x006","39.7800x010","39.7900x011","39.7900x030","39.7900x031","39.7900x517","39.9000x022","39.9000x037","39.9000x038"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合FM2入组条件，匹配规则：主手术匹配')

    if MDCF_DRG.FM29_group(record):
      return 'FM29'
        
    return 'FM2'
  else:
    return ''
    
